// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import "./assets/css/free.css"
import "./assets/css/style.css"
import echarts from 'echarts'
import {
  Table
} from 'element-ui';
import './util/rem'
import {
  dev
} from '../config/index'

import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import AMap from 'vue-amap';
Vue.use(AMap);
AMap.initAMapApiLoader({
  key: '1bf26c6b6efba54381c2f15c0208fd2d',
  plugin: ['AMap.Autocomplete', 'AMap.PlaceSearch', 'AMap.Scale', 'AMap.OverView', 'AMap.ToolBar', 'AMap.MapType', 'AMap.PolyEditor', 'AMap.CircleEditor', 'AMap.MarkerClusterer','AMap.Geolocation','Geolocation','AMap.DistrictSearch'],
  v: '1.4.15',
  uiVersion: '1.0.11' // ui版本号，也是需要写
});
if (process.env.NODE_ENV == 'development') {
  Vue.prototype.$uploadHost = dev.baseHost
} else if (process.env.NODE_ENV == 'production') {
  Vue.prototype.$uploadHost = window.location.host
}
Vue.use(ElementUI);
Vue.config.productionTip = false



import mixins from '@/mixins';
Vue.mixin(mixins)
/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  components: {
    App
  },
  template: '<App/>'
})
